package com.project.nimsen.weixin.bean;

import org.apache.commons.lang3.StringUtils;
import org.dom4j.Element;

/**
 * 所有接收消息的父类
 * */
public class BaseRMsg extends BaseMsg {
	private String msgid;//消息id

	public String getMsgid() {
		return msgid;
	}

	public void setMsgid(String msgid) {
		this.msgid = msgid;
	}

	protected String info() {
		return "<MsgId>" + this.getMsgid() + "</MsgId>";
	}

	protected void fullchildProperty(Element root) {
		String sgid = root.elementText("MsgId");
		if(StringUtils.isNotBlank(sgid))
			this.setMsgid(sgid);
	}
	
}
